package cn.mymall.constant;

import java.util.Collections;
import java.util.HashMap;
import java.util.Map;

public class PayMethodConstant {

	public static final String PAY_METHOD_UNION_PAY = "union_pay";//银联支付
	public static final String PAY_METHOD_WEIXIN_PAY = "weixin_pay";//微信JS支付



	public static final Map<String, String> PAYMETHOD_MAP;

	static{
		Map<String, String> tmp = new HashMap<String, String>(6);
		tmp.put(PAY_METHOD_UNION_PAY, "银联支付");
		tmp.put(PAY_METHOD_WEIXIN_PAY, "微信支付");
		PAYMETHOD_MAP = Collections.unmodifiableMap(tmp);;
	}

	public static String getPaymethod(String paymethod) {
		if(PAYMETHOD_MAP.containsKey(paymethod)) return PAYMETHOD_MAP.get(paymethod);
		return null;
	}
}
